# 此语句规定了运行该 CMake 脚本所需的最低 CMake 版本为 3.16。要是使用的 CMake 版本低于 3.16，就会报错。
cmake_minimum_required(VERSION 3.16)
PROJECT(BASE)
message("=======================main=================================")
message(">>> PROJECT_SOURCE_DIR" = ${PROJECT_SOURCE_DIR})
SET(CMAKE_3RD_PARTY  "${PROJECT_SOURCE_DIR}")
message(">>> CMAKE_3RD_PARTY" = ${CMAKE_3RD_PARTY})
message("=======================sub=================================")
message(">>> CMAKE_SOURCE_DIR" = ${CMAKE_SOURCE_DIR})
message(">>> CMAKE_BINARY_DIR" = ${CMAKE_BINARY_DIR})
message(">>> CMAKE_CURRENT_SOURCE_DIR" = ${CMAKE_CURRENT_SOURCE_DIR})
message(">>> CMAKE_CURRENT_BINARY_DIR" = ${CMAKE_CURRENT_BINARY_DIR})
message(">>> CMAKE_TOOLCHAIN_FILE" = ${CMAKE_TOOLCHAIN_FILE})
message(">>> PROJECT_BINARY_DIR" = ${PROJECT_BINARY_DIR})
message(">>> PROJECT_SOURCE_DIR" = ${PROJECT_SOURCE_DIR})
message(">>> CMAKE_SYSTEM_NAME" = ${CMAKE_SYSTEM_NAME})
message(">>> CMAKE_CXX_COMPILER" = ${CMAKE_CXX_COMPILER})
message(">>> CMAKE_BUILD_TYPE" = ${CMAKE_BUILD_TYPE})
message(">>> CMAKE_C_FLAGS" = ${CMAKE_C_FLAGS})
message(">>> CMAKE_CXX_FLAGS" = ${CMAKE_CXX_FLAGS})
message(">>> CMAKE_INSTALL_PREFIX" = ${CMAKE_INSTALL_PREFIX})
message(">>> CMAKE_EXPORT_COMPILE_COMMANDS" = ${CMAKE_EXPORT_COMPILE_COMMANDS})
message(">>> CMAKE_POSITION_INDEPENDENT_CODE  " = ${CMAKE_POSITION_INDEPENDENT_CODE})
message(">>> CMAKE_C_STANDARD" = ${CMAKE_C_STANDARD})
message(">>> CMAKE_CXX_STANDARD" = ${CMAKE_CXX_STANDARD})
message(${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH})
message(">>> CMAKE_MODULE_PATH" = ${CMAKE_MODULE_PATH})
message("=======================main=================================")
message(">>> PROJECT_SOURCE_DIR" = ${PROJECT_SOURCE_DIR})
SET(CMAKE_3RD_PARTY  "${PROJECT_SOURCE_DIR}")
message(">>> CMAKE_3RD_PARTY" = ${CMAKE_3RD_PARTY})
message("=======================use=================================")
ADD_SUBDIRECTORY(pg-inspection)
ADD_SUBDIRECTORY(pg-config-diff)
ADD_SUBDIRECTORY(pg-duplicate-key-checker)

